(function(window){
  var M = {}


  M.showdate =function(goumairiqi){
    var date = new Date();
    var year=date.getFullYear();
    var buyyear=goumairiqi.split(' ')[0].split('-')[0];
    var buymonth=goumairiqi.split(' ')[0].split('-')[1];
    var buyday=goumairiqi.split(' ')[0].split('-')[2];
    var buyhour=goumairiqi.split(' ')[1].split(':')[0];
    var buyminute=goumairiqi.split(' ')[1].split(':')[1];
    if(year==buyyear){
      return buymonth+'-'+buyday+' '+buyhour+':'+buyminute;
    }else{
      return buyyear+'-'+buymonth+'-'+buyday+' '+buyhour+':'+buyminute;
    }
  }

  M.watchtime=function(authorvideotime) {
      return authorvideotime.split(' ')[0];
  }
  window.Mou = M;
})(window)
